<?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><?php QG_C_TEMPLATE::p("global_head","","0");?>
<?php QG_C_TEMPLATE::p("right.css","","0");?>
<?php QG_C_TEMPLATE::p("right.head","","0");?>

<!-- 专题管理 -->
<?php if($sysAct == "list"){?>
<table width="100%">
<tr>
	<td class="qg_notice" style="text-align:left;">
		<a href="admin.php?file=index">系统首页</a>
		&raquo; 单页面内空管理
		<input type="button" value="添加单页面" onclick="qgurl('admin.php?file=special&act=view');">
	</td>
</tr>
</table>

<?php $_i=0;$booklist=(is_array($booklist))?$booklist:array();foreach($booklist AS  $key=>$value){$_i++; ?>
<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="right" style="width:200px">
		<span class="msg_attr">[ID:<?php echo $value[id];?>]</span>
		<a class="listinfo" href="admin.php?file=special&act=view&id=<?php echo $value[id];?>"><?php echo $value[subject];?></a>
		
	</td>
    <td class="left listact">
		<a href="#" onclick="qg_view(<?php echo $value[id];?>)">编辑</a>
		<a href="#" onclick="qg_delete(<?php echo $value[id];?>)" class="OFF">删除</a>
	</td>
</tr>
</table>
</div>
<?php } ?>
<script type="text/javascript">
function qg_check(id)
{
	qgurl("admin.php?file=special&act=status&id="+id);
}
function qg_view(id)
{
	qgurl("admin.php?file=special&act=view&id="+id);
}
function qg_delete(id)
{
	//判断是否删除
	question = confirm("确认删除该信息吗？特别说明，删除后无法恢复！");
	if (question != "0")
	{
		qgurl("admin.php?file=special&act=delete&id="+id);
	}
}
</script>
<?php }elseif($sysAct == "view"){ ?>
<table width="100%">
<tr>
	<td class="qg_notice" style="text-align:left;">
		<a href="admin.php?file=index">系统首页</a>
		&raquo; <a href="admin.php?file=special&act=list">专题列表</a>
		&raquo; <?php echo $lead_title;?>
		<input type="button" value="单页面管理" onclick="qgurl('admin.php?file=special&act=list');">
	</td>
</tr>
</table>
<?php $ifcheck = $rs[ifcheck];;?>
<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<form name="qgform" method="post" action="admin.php?file=special&act=viewok&id=<?php echo $id;?>">
<tr>
	<td class="left">状态：</td>
	<td class="right">
		<table cellpadding="1" cellspacing="0">
		<tr>
			<td><input type="radio" name="ifcheck" value="0"<?php if($ifcheck == 0 || !$ifcheck){?> checked<?php } ?>></td>
			<td>锁定</td>
			<td><input type="radio" name="ifcheck" value="1"<?php if($ifcheck && $ifcheck != 0){?> checked<?php } ?>></td>
			<td>正常</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</div>

<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="left">主题：<span style="color:red;">*</span></td>
	<td class="right">
		<table cellpadding="0" cellspacing="0">
		<tr>
			<td><input type="text" name="subject" id="subject" class="long_input" value="<?php echo $rs[subject];?>"></td>
			<td width="1"><img src="" width="0" height="0"></td>
			<td>
				<select name="style">
				<?php $_i=0;$csslist=(is_array($csslist))?$csslist:array();foreach($csslist AS  $key=>$value){$_i++; ?>
				<option value="<?php echo $value[style];?>"<?php if($rs[style] == $value[style]){?> selected<?php } ?>><?php echo $value[name];?></option>
				<?php } ?>
				</select>
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</div>

<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="left">排序：</td>
	<td class="right">
		<span><input type="text" name="taxis" id="taxis" class="short_input" value="<?php echo $rs[taxis];?>"></span>
		<span class="clue_on">[最大不超过255，值越小越往前靠]</span>
	</td>
</tr>
</table>
</div>

<div class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'">
<table width="100%">
<tr>
	<td class="left">自定义网址：</td>
	<td class="right">
		<span><input type="text" name="myurl" id="myurl" class="long_input" value="<?php echo $rs[url];?>"></span>
		<span class="clue_on">[如果您设置了自定义网址，内容将无效]</span>
	</td>
</tr>
</table>
</div>

<?php QG_C_TEMPLATE::p("fckeditor.msg","","0");?>
<div class="table">
<table width="100%">
<tr>
	<td class="left">&nbsp;</td>
	<td class="right"><input type="submit" class="mybutton_01" value="提 交"> &nbsp; <span id="show_step" style="color:red;"></span></td>
</tr>
</table>
</div>

</form>
<?php } ?>

<?php QG_C_TEMPLATE::p("foot","","0");?>